package com.ewili.x.special.comparator;

import com.ewili.x.special.entity.HisRecord;

import java.util.Comparator;

public class HisRecordComparator implements Comparator<HisRecord> {

    @Override
    public int compare(HisRecord o1, HisRecord o2) {
        return o1.getTotalValue().compareTo(o2.getTotalValue());
    }
}
